/**
 * Created by feel on 15/8/8.
 */

$(function(){

     //get  request  list.json
    //alert(window.location.href);
    //http://www.feel88.cn/download/list.json
    $.get("js/list.json",function(jsondata,status){

        var jsonarrfile=eval(jsondata).file;

        $("table tr").remove();

        $("table").append('<tr  class="active"><th>Name</th><th></th><th></th>');

        for (var i = 0; i < jsonarrfile.length; i++) {
            filename=jsonarrfile[i];

            $("table").append('<tr><td><a href=download/'+filename+'>'+filename+'</a></td><td></td><td></td></tr>');


        }
        //end for

    });
    //end get


//end $ function
});